//http://code.angularjs.org/1.2.1/docs/guide/bootstrap#overview_deferred-bootstrap
window.name = 'NG_DEFER_BOOTSTRAP!';
require([
  'angular',
  'app',
  'domReady',
  'angular-route',
  'angular-cookies',
  'angular-sanitize',
  'angular-resource',
  'angular-animate',
  'angular-aria',
  'angular-messages',
  'angular-touch',
  'angular-breadcrumb',
  'lodash',
  'app-init',
], function (angular, app, domReady, ngRoutes, ngCookies, ngSanitize, ngResource, ngAnimate, ngTouch) {
  'use strict';
  /* jshint ignore:start */
  var $html = angular.element(document.getElementsByTagName('html')[0]);
  /* jshint ignore:end */
  domReady(function(){
    angular.bootstrap(document, [app.name]);
    angular.resumeBootstrap();
  });
});
